package main

import "learngo/Interfaces/mypkg"

func main() {
	//definedInterface.go
	/* var value mypkg.MyInterface
	value = mypkg.MyType(5)

	//使用MyInterface中的方法
	value.MethodWithoutParameters()
	value.MethodWithParameter(127.3)
	fmt.Println(value.MethodWithReturnValue())*/

	//satisfiedType.go
	/* var toy mypkg.NoiseMaker
	toy = mypkg.Whistle("Toyco Canary")
	toy.MakeSound()
	toy = mypkg.Horn("Toyco Blaster")
	toy.MakeSound() */

	mypkg.TestTypeAssertion()

}
